
#include "etl_connection_base.h"

using namespace etl;

bool etl_connection_base::initialized = false;

int etl_connection_base::initialize()
{
  if (!etl_connection_base::initialized)
  {
    etl_connection_base::initialized = true;

#ifdef WIN32
    WSADATA wsaData;
    int result = WSAStartup(MAKEWORD(2, 2), &wsaData);
    if (result != NO_ERROR)
      return -1;
#else
#endif
  }
  return 0;
}
